
package com.rt.schedulebase.mapper;

import com.rt.schedulebase.dto.DictScheduleApmDto;
import com.rt.schedulebase.entity.DictScheduleApm;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rt.schedulebase.entity.DictScheduleCycle;

import java.util.List;

public interface DictScheduleApmMapper extends BaseMapper<DictScheduleApm> {

    List<DictScheduleApmDto> getScheduleApms(DictScheduleApmDto p0);


    /***
     *  and dsa.schedule_date is null
     *   and dsa.week_date is null
     * @param p0
     * @return
     */
    List<DictScheduleApmDto> getCommonScheduleApm(DictScheduleApmDto p0);


    List<String> getScheduleApm(DictScheduleApmDto p0);


    void updateTsak(DictScheduleApm p0);


    List<DictScheduleApmDto> getOneDateExamQueueApm(DictScheduleApmDto p0);

    List<DictScheduleApmDto> getOneWeekExamQueueApm(DictScheduleApmDto p0);

    List<DictScheduleApmDto> getWeekScheduleApm(DictScheduleApmDto p0);

    /**
    * @description apm_type is null
    * @author ryan.li
    * @date 2022/10/26 10:46
    * @param p0
    * @return
    */
    List<DictScheduleApmDto> getDateScheduleApm(DictScheduleApmDto p0);


    List<DictScheduleApmDto> getExamQueueApm(DictScheduleApmDto p0);


    DictScheduleApmDto getScheduleRange(DictScheduleApmDto p0);


    int isScheduleCount(DictScheduleCycle cycle);


    int delForRange(DictScheduleCycle cycle);

    int delForRegular(DictScheduleCycle cycle);



    int isTimeRepeated(DictScheduleApmDto p0);


}
